from enum import Enum

class CommonMassages(Enum):

    # 通用消息
    CCD_SELECT_SUCCESS = '获取数据成功！'
    CCD_SELECT_FAILED = '暂无数据。'

    CCD_INSERT_SUCCESS = '新增数据成功！'
    CCD_INSERT_FAILED = '新增数据失败！'

    CCD_UPDATE_SUCCESS = '更新数据成功！'
    CCD_UPDATE_FAILED = '更新数据失败！'

    CCD_DELETE_SUCCESS = '删除数据成功！'
    CCD_DELETE_FAILED = '删除数据失败！'

    # 上传文件消息
    EXCEL_UPLOAD_SUCCESS = '文件上传成功！'
    EXCEL_UPLOAD_FAILED = '文件上传失败！'

    EXCEL_SELECT_FAILED = '尚未选择文件！'

    EXCEL_TYPE_ERROR = '文件类型错误！'

    # 上传图片消息
    IMAGE_UPLOAD_SUCCESS = '图片上传成功！'
    IMAGE_UPLOAD_FAILED= '图片上传失败！'

    IMAGE_TYPE_ERROR = '图片类型错误！'

    # 用户管理与登录消息
    USER_SELECT_SUCCESS = '获取用户数据成功！'
    USER_SELECT_FAILED = '暂无数据。'

    USER_INSERT_SUCCESS = '新增用户成功！'
    USER_INSERT_FAILED = '新增用户失败！'

    USER_UPDATE_SUCCESS = '更新用户数据成功！'
    USER_UPDATE_FAILED = '更新用户数据失败！'

    USER_DELETE_SUCCESS = '删除用户成功！'
    USER_DELETE_FAILED = '删除用户失败！'

    USER_LOGIN_SUCCESS = '用户登录成功！'
    USER_LOGIN_FAILED= '用户登录失败！'
    USER_USERNAME_PASSWORD_ERROR = '用户名或密码错误'
    USERNAME_PASSWORD_ERROR = '用户名和密码不能为空！'
    USER_EXIST_ERROR = '该用户名已存在！'

    USER_LOGINOUT_SUCCESS = '退出登录成功！'

    TOKEN_EXPIRED_ERROR = 'token已过期，请重新登录！'

    # 历史消息
    REPORT_SELECT_SUCCESS = '获取数据成功！'
    REPORT_SELECT_FAILED = '暂无数据。'
    REPORT_DELETE_SUCCESS = '删除数据成功！'
    REPORT_DELETE_FAILED = '删除数据失败！'

    # 报告生成
    REPORT_GENERATION_SUCCESS = '报告生成成功！'
    REPORT_GENERATION_FAILED = '报告生成失败！'